package com.myFwk.threadPool;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author GL
 * @version 1.0
 * @date 2021/10/16 21:23
 */
@ConfigurationProperties(prefix = "customers")
@Component
public class ThreadProperties {
    /**
     * 最大核心线程数
     */
    private String corePoolSize;
    /**
     * 最大线程数
     */
    private String maximumPoolSize;
    /**
     * 队列最大数
     */
    private String queueMax;

    public String getCorePoolSize() {
        return corePoolSize;
    }

    public void setCorePoolSize(String corePoolSize) {
        this.corePoolSize = corePoolSize;
    }

    public String getMaximumPoolSize() {
        return maximumPoolSize;
    }

    public void setMaximumPoolSize(String maximumPoolSize) {
        this.maximumPoolSize = maximumPoolSize;
    }

    public String getQueueMax() {
        return queueMax;
    }

    public void setQueueMax(String queueMax) {
        this.queueMax = queueMax;
    }
}
